using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;

namespace LayoutViewer.Panels
{
    public partial class Attributes : UserControl
    {
        public Attributes()
        {
            InitializeComponent();
        }

        private void InitializeComponent()
        {
            AvaloniaXamlLoader.Load(this);
        }

        private async void Attr_DoubleTapped(object sender, RoutedEventArgs e)
        {
            var tb = sender as TextBlock;
            if (tb != null)
            {
                await Application.Current.Clipboard.SetTextAsync(tb.Text);
            }
        }

    }
}
